<!--%import("filter/insert_denied_ip.xml")-->
<!--%import("filter/delete_denied_ip.xml")-->

<!--#include("_header.html")-->

<!-- xml js filter를 이용하기 위한 데이터 전달용 form -->
<form id="fo_denied_ip" action="./" method="get">
<input type="hidden" name="ipaddress" value="" />
</form>

<!-- 수동 추가 -->
<form action="./" method="get" onsubmit="return procFilter(this, insert_denied_ip)">
    <table cellspacing="0" class="rowTable">
    <tr>
        <th scope="row"><div>{$lang->denied_ip}</div></th>
        <td>
            <input type="text" name="ipaddress" value="" class="inputTypeText" />
            <p>{$lang->about_denied_ip}</p>
        </td>
    </tr>
    <tr>
        <th colspan="2" class="button">
            <span class="button black strong"><input type="submit" value="{$lang->cmd_registration}" accesskey="s" /></span>
        </th>
    </tr>
    </table>
</form>

<!-- 검색 -->
<div class="fl">
	<form actiom="./" method="get" class="adminSearch">
		<input type="hidden" name="module" value="{$module}" />
		<input type="hidden" name="act" value="{$act}" />
		<input type="hidden" name="module_srl" value="{$module_srl}" />

		<fieldset>
			<input type="text" name="search_keyword" value="{htmlspecialchars($search_keyword)}" class="inputTypeText" />
			<span class="button blue"><input type="submit" value="{$lang->cmd_search}" /></span>
			<a href="{getUrl('', 'module', $module, 'act', $act)}" class="button black"><span>{$lang->cmd_cancel}</span></a>
		</fieldset>
	</form>
</div>

<!-- 목록 -->
<form action="./" method="get" onsubmit="return procFilter(this, delete_denied_ip)">
<table cellspacing="0" class="rowTable">
<caption>Total{count($ip_list)}</caption>
<thead>
    <tr>
        <th scope="col"><div>{$lang->no}</div></th>
		<th><div><input type="checkbox" onclick="XE.checkboxToggleAll({ doClick:true }); return false;" /></div></th>
        <th scope="col"><div>{$lang->ipaddress}</div></th>
        <th scope="col"><div>{$lang->regdate}</div></th>
        <th scope="col"><div>{$lang->cmd_delete}</div></th>
    </tr>
</thead>
<tbody>
    <!--@foreach($ip_list as $no => $val)-->
    <tr class="row{$cycle_idx}">
        <td>{count($ip_list)-$no}</td>
		<td><input type="checkbox" class="check_denied_ip" name="cart" value="{$val->ipaddress}" /></td>
        <td class="wide">{$val->ipaddress}</td>
        <td>{zdate($val->regdate,"Y-m-d")}</td>
        <td><a href="#" onclick="doDeleteDeniedIP('{$val->ipaddress}');return false;" title="{$lang->cmd_delete}" class="buttonSet buttonDelete"><span>{$lang->cmd_delete}</span></a></td>
    </tr>
    <!--@end-->
</tbody>
<tfoot>
	<tr>
		<th colspan="5" class="button">
            <span class="button black strong"><button type="button" onclick="doDeleteDeniedIPs()">{$lang->cmd_delete}</button></span>
		</th>
	</tr>
</tfoot>
</table>
</form>
